const {ccclass, property} = cc._decorator;

// 开始游戏
@ccclass
export default class btnToStart extends cc.Component {

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {}
    @property(String)
    sceneName: string | null = '';

    start () {
        // 按下开始游戏按钮，跳转到游戏界面
        this.node.on(cc.Node.EventType.TOUCH_START, (event)=>{
            cc.director.loadScene(this.sceneName);
        })

    }

    // update (dt) {}
}
